﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;

namespace Pyramid_Game
{
    public class PolygonStage02 : MakePloygon
    {
        /*
        public PolygonStage02(int size)
        {
            
            this.size = size;

            shape = new Point[size];
            position = new Vector2[size];
            piece = new Texture2D[size];

            //좌표수정
            judgement.Add(new Rectangle(250 - margin / 2, 90 - margin / 2, margin, margin));
            judgement.Add(new Rectangle(400 - margin / 2, 90 - margin / 2, margin, margin));
            judgement.Add(new Rectangle(325 - margin / 2, 165 - margin / 2, margin, margin));
            judgement.Add(new Rectangle(250 - margin / 2, 240 - margin / 2, margin, margin));
            judgement.Add(new Rectangle(400 - margin / 2, 240 - margin / 2, margin, margin));

            shape[0] = (new Point(rand.Next(150, 650), rand.Next(150, 330)));
            shape[1] = (new Point(rand.Next(150, 650), rand.Next(150, 330)));
            shape[2] = (new Point(rand.Next(150, 650), rand.Next(150, 330)));
            shape[3] = (new Point(rand.Next(150, 650), rand.Next(150, 330)));
            shape[4] = (new Point(rand.Next(150, 650), rand.Next(150, 330)));

            position[0] = new Vector2(250, 90);
            position[1] = new Vector2(400, 90);
            position[2] = new Vector2(325, 165);
            position[3] = new Vector2(250, 240);
            position[4] = new Vector2(400, 240);
        }
            */
        public override void LoadContent(ContentManager content)
        {
            polygon = content.Load<Texture2D>("Texture/polygon/2_1");
            piece[0] = content.Load<Texture2D>("Texture/polygon/2_2");
            piece[1] = content.Load<Texture2D>("Texture/polygon/2_3");
            piece[2] = content.Load<Texture2D>("Texture/polygon/2_4");
            piece[3] = content.Load<Texture2D>("Texture/polygon/2_5");
            piece[4] = content.Load<Texture2D>("Texture/polygon/2_6");
        }
        public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {

        }
    }
}
